package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.QTelManyiMapper;
import com.ruoyi.system.domain.QTelManyi;
import com.ruoyi.system.service.IQTelManyiService;
import com.ruoyi.common.core.text.Convert;

/**
 * 呼叫满意度Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-06-21
 */
@Service
public class QTelManyiServiceImpl implements IQTelManyiService 
{
    @Autowired
    private QTelManyiMapper qTelManyiMapper;

    /**
     * 查询呼叫满意度
     * 
     * @param mydName 呼叫满意度主键
     * @return 呼叫满意度
     */
    @Override
    public QTelManyi selectQTelManyiByMydName(String mydName)
    {
        return qTelManyiMapper.selectQTelManyiByMydName(mydName);
    }

    /**
     * 查询呼叫满意度列表
     * 
     * @param qTelManyi 呼叫满意度
     * @return 呼叫满意度
     */
    @Override
    public List<QTelManyi> selectQTelManyiList(QTelManyi qTelManyi)
    {
        return qTelManyiMapper.selectQTelManyiList(qTelManyi);
    }

    /**
     * 新增呼叫满意度
     * 
     * @param qTelManyi 呼叫满意度
     * @return 结果
     */
    @Override
    public int insertQTelManyi(QTelManyi qTelManyi)
    {
        return qTelManyiMapper.insertQTelManyi(qTelManyi);
    }

    /**
     * 修改呼叫满意度
     * 
     * @param qTelManyi 呼叫满意度
     * @return 结果
     */
    @Override
    public int updateQTelManyi(QTelManyi qTelManyi)
    {
        return qTelManyiMapper.updateQTelManyi(qTelManyi);
    }

    /**
     * 批量删除呼叫满意度
     * 
     * @param mydNames 需要删除的呼叫满意度主键
     * @return 结果
     */
    @Override
    public int deleteQTelManyiByMydNames(String mydNames)
    {
        return qTelManyiMapper.deleteQTelManyiByMydNames(Convert.toStrArray(mydNames));
    }

    /**
     * 删除呼叫满意度信息
     * 
     * @param mydName 呼叫满意度主键
     * @return 结果
     */
    @Override
    public int deleteQTelManyiByMydName(String mydName)
    {
        return qTelManyiMapper.deleteQTelManyiByMydName(mydName);
    }
}
